# a = 'I'
# b = 'love'
# c = 'You'
#
# print(a + " " + b + " " + c)
#
# li = [1, 2, 3, 4, 5]
# li2 = [6, 7, 8, 9, 10]
#
# print(li + li2)
#
# print('我要放假了！' * 10)

# li3 = [1, 2, 3]  # 并不会改变元素中的值
# print(li3 * 3)
# print(li3 + li3 + li3)
#
# if 1 in li3:
#     print('我服了你这个老六！')
# else:
#     print('我真的会谢！')

# a = 1
# b = 2
# print(a+b)  # 进行的是数字运算

# list1 = ['a', 'b', 'c', 'd', 'e']
# # 通过循环 得到每一个值的下标  count    list1.index(i)
# # len()  while 自增1   长度是5个  下标0-4
# count = 0
# for i in list1:
#     print(i, list1.index(i))
#     count += 1
#
# for index, value in enumerate(list1):
#     print(index, value)  # 元组


a = [1, 2, 3]
b = [4, 5, 6]
c = [4, 5, 6, 7, 8]
zipped = zip(a, b)
print(zipped)
print(list(zipped))   #  [(1, 4), (2, 5), (3, 6)]
# zipped = zip(a, c)
# print(zipped)
# print(list(zipped))


# print(list(zip(*zipped)))
x1, x2 = list(zip(*zipped))   # 解包
print(x1, x2)

# a,b = (1,2)
# print(a,b)

# map函数  在高阶函数跟同学们讲解
